kvscanner: kvscanner.c kvs70xx.o kvs70xx.h
	gcc -g -o kvscanner kvscanner.c -I. kvs70xx.o -lusb -O2 -Wall -std=c99

kvs70xx.o: kvs70xx.c kvs70xx.h
	gcc -g -c kvs70xx.c -O2 -Wall -std=c99

clean:
	rm -f *.o kvscanner
